//
//  CustomAlertView.m
//  ZooNgonDoiOS
//
//  Created by Trung sound on 6/26/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "CustomAlertView.h"

@implementation CustomAlertView

- (void)layoutSubviews {
    for (UIView *subview in self.subviews){ //Fast Enumeration
                                            //NSLog(@"subview class :%@",[subview class]); //Get Class Description of Each Subview
                                            //NSLog(@"subview.tag %i",subview.tag); //Get Button Tags
		
		if ([subview isMemberOfClass:[UIImageView class]]) { //Find UIImageView Containing Blue Background
			subview.hidden = YES; //Hide UIImageView Containing Blue Background
                                  // [subview removeFromSuperview]; Also Works
		}
        
		if ([subview isMemberOfClass:[UILabel class]]) { //Point to UILabels To Change Text
			UILabel *label = (UILabel*)subview;	//Cast From UIView to UILabel
			label.textColor = [UIColor colorWithRed:210.0f/255.0f green:210.0f/255.0f blue:210.0f/255.0f alpha:1.0f];
			label.shadowColor = [UIColor redColor];
			label.shadowOffset = CGSizeMake(10.0f, 1.0f);
		}
	}
}

@end
